import _http from "@/utils/http";

export default {
  goodsDefaultGet(params, loading, headers) {
    return _http("post", {
      url: "/eas/mobile/income-conf/goods-default/get",
      apiName: "获取商品默认留存比",
    }, params, loading, headers);
  },
  goodsDefaultSet(params, loading, headers) {
    return _http("post", {
      url: "/eas/mobile/income-conf/goods-default/set",
      apiName: "设置商品默认留存比",
    }, params, loading, headers);
  },
  incomeConfGet(params, loading, headers) {
    return _http("post", {
      url: "/eas/mobile/income-conf/default/get",
      apiName: "获取默认留存比",
    }, params, loading, headers);
  },
  incomeConfSet(params, loading, headers) {
    return _http("post", {
      url: "/eas/mobile/income-conf/default/set",
      apiName: "设置默认留存比",
    }, params, loading, headers);
  },
  goodsList(params, loading) {
    return _http('post', {
      url: "/eas/mobile/goods/choose/list",
      apiName: '商品列表'
    }, params, loading)
  },
};
